char **address;
{
extern char *tgetstr ();
+ char capval[32];
int i;
for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++)
else
fcap[1] = 'a' + i - 11;
- if (tgetstr(fcap))
+ if (tgetstr(fcap, &capval))
{
(void) sprintf(fkey, "f%d", i);
Fdefine_key (Vfunction_key_map,
*/
{
#define CONDITIONAL_REASSIGN(cap1, cap2, sym) \
- if (!tgetstr(cap1) && tgetstr(cap2)) \
+ if (!tgetstr(cap1, &capval) && tgetstr(cap2, &capval)) \
Fdefine_key (Vfunction_key_map, \
build_string (cap2), \
Fmake_vector (make_number (1), intern (sym)))
CONDITIONAL_REASSIGN("%8", "kP", "previous");
/* if there's no key_dc keycap, map key_ic to `insert' keysym */
CONDITIONAL_REASSIGN("kD", "kI", "insert");
+#undef CONDITIONAL_REASSIGN
}
}